package basic;

import java.util.ArrayList;

/**
 * Stores sets of entities position in grid, an object identifier and number of
 * collisions for given set of positions.
 * 
 */
public class CollisionEntity {

	private int ncollision = 0;
	private int id = 0;
	private ArrayList<Entity> entities = new ArrayList<Entity>();

	public CollisionEntity(ArrayList<Entity> entities, int id) {
		this.entities.addAll(entities);
		this.id = id;
	}

	public void setNCollision(int ncol) {
		this.ncollision = ncol;
	}

	public int getNCollision() {
		return this.ncollision;
	}

	public int getIdSet() {
		return this.id;
	}

	public ArrayList<Entity> getEntities() {
		return this.entities;
	}

}
